﻿using Microsoft.AspNetCore.Mvc;
using tools.office.freespire;

namespace tools.api.Controllers
{
    /// <summary>
    /// FreeSpire 工具操作 
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class FreeSpireController : ControllerBase
    {
        [HttpGet]
        public IActionResult Read_Excel(string filePath)
        { 
            return Ok(FreeSpireExcelTool.GetDataTable(filePath));
        }
    }
}
